]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/network: Don't show OWE networks as secure
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 29 Aug 2023 17:09:21 +0000 (19:09 +0200)
committerMarge Bot <marge-bot@gnome.org>
Thu, 31 Aug 2023 11:54:51 +0000 (11:54 +0000)
The OWE protocol is used by public networks to provide some
form of encryption, but without authentication. That makes
them more secure than unencrypted public networks, but still
significantly less secure than "proper" encryption types like
WPA.

The are not shown as secure by Settings' network panel, so we
shouldn't do so either.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6918

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2927>

js/ui/status/network.js

index 324ad4f55351bd6730921fe607d87b5530cbc7da..322d7d91a0bc75681c79829c2cbe310cf6cfeeed 100644 (file)
@@ -811,7 +811,10 @@ const WirelessNetwork = GObject.registerClass({
     }
 
     get secure() {
-        return this._securityType !== NM.UtilsSecurityType.NONE;
+        return this._securityType !== NM.UtilsSecurityType.NONE &&
+            this._securityType !== NM.UtilsSecurityType.UNKOWN &&
+            this._securityType !== NM.UtilsSecurityType.OWE &&
+            this._securityType !== NM.UtilsSecurityType.OWE_TM;
     }
 
     get is_active() {